import request from '@/utils/request'

// 查询借调同行列表
export function listJob(query) {
  return request({
    url: '/seconded/job/list',
    method: 'get',
    params: query
  })
}
export function jobCountlist(query) {
  return request({
    url: '/seconded/job/jobCountlist',
    method: 'get',
    params: query
  })
}
export function jobCountlist1(query) {
  return request({
    url: '/seconded/job/jobCountlist1',
    method: 'get',
    params: query
  })
}
export function jobList(query) {
  return request({
    url: '/seconded/job/jobList',
    method: 'get',
    params: query
  })
}

// 查询借调同行详细
export function getJob(id) {
  return request({
    url: '/seconded/job/' + id,
    method: 'get'
  })
}

// 新增借调同行
export function addJob(data) {
  return request({
    url: '/seconded/job',
    method: 'post',
    data: data
  })
}

// 修改借调同行
export function updateJob(data) {
  return request({
    url: '/seconded/job',
    method: 'put',
    data: data
  })
}

// 删除借调同行
export function delJob(id) {
  return request({
    url: '/seconded/job/' + id,
    method: 'delete'
  })
}

// 导出借调同行
export function exportJob(query) {
  return request({
    url: '/seconded/job/export',
    method: 'get',
    params: query
  })
}
